

using OkTool.Util;
using System.ComponentModel;

namespace OkTool.Test
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
        var d=    NumberUtil.FormatMoney(120003);
          var s=  StrUtil.GetMiddle("123456", "2", "6");
           var dd= EnumUtil.GetListOfNameAndValue(typeof(aa));
            foreach (string key in dd.AllKeys)
            {
                var v= dd[key];
                Console.WriteLine("Key: {0}, Value: {1}", key, dd[key]);
            }
        }
    }

    public enum aa
    {
        [System.ComponentModel.Description("11")]
        aa=1,
        [System.ComponentModel.Description("aaaaaa")]
        bb = 2
    }
}